package com.ys.ylideas.entity;

import java.io.Serializable;

public class IdeaEntity implements Serializable{

	private static final long serialVersionUID = 1L;
	private int id;
	private String ideaTitle;
	private String ideaDesOne;
	private String ideaDesTwo;
	private String mobileDisplayUrl;
	private String mobileVisitUrl;
	private String displayUrl;
	private boolean pause;
	private int devicePerference;
	private Long adgroupId;
	private Long creativeId;
	public String getMobileDisplayUrl() {
		return mobileDisplayUrl;
	}
	public void setMobileDisplayUrl(String mobileDisplayUrl) {
		this.mobileDisplayUrl = mobileDisplayUrl;
	}
	public String getMobileVisitUrl() {
		return mobileVisitUrl;
	}
	public void setMobileVisitUrl(String mobileVisitUrl) {
		this.mobileVisitUrl = mobileVisitUrl;
	}
	public Long getAdgroupId() {
		return adgroupId;
	}
	public void setAdgroupId(Long adgroupId) {
		this.adgroupId = adgroupId;
	}
	public Long getCreativeId() {
		return creativeId;
	}
	public void setCreativeId(Long creativeId) {
		this.creativeId = creativeId;
	}
	public boolean getPause() {
		return pause;
	}
	public void setPause(boolean pause) {
		this.pause = pause;
	}
	public int getDevicePerference() {
		return devicePerference;
	}
	public void setDevicePerference(int devicePerference) {
		this.devicePerference = devicePerference;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getIdeaTitle() {
		return ideaTitle;
	}
	public void setIdeaTitle(String ideaTitle) {
		this.ideaTitle = ideaTitle;
	}
	public String getIdeaDesOne() {
		return ideaDesOne;
	}
	public void setIdeaDesOne(String ideaDesOne) {
		this.ideaDesOne = ideaDesOne;
	}
	public String getIdeaDesTwo() {
		return ideaDesTwo;
	}
	public void setIdeaDesTwo(String ideaDesTwo) {
		this.ideaDesTwo = ideaDesTwo;
	}
	public String getDisplayUrl() {
		return displayUrl;
	}
	public void setDisplayUrl(String displayUrl) {
		this.displayUrl = displayUrl;
	}
	public String getVisitUrl() {
		return visitUrl;
	}
	public void setVisitUrl(String visitUrl) {
		this.visitUrl = visitUrl;
	}
	
	private String visitUrl;
	private int accountId;
	public int getAccountId() {
		return accountId;
	}
	public void setAccountId(int accountId) {
		this.accountId = accountId;
	}
	
	public String toCSVString(){
		return "\""+ideaTitle.replaceAll("\"","\"\"")+"\""+","+"\""+ideaDesOne.replaceAll("\"","\"\"")+"\""+","+"\""+ideaDesTwo.replaceAll("\"","\"\"")+"\""+","+"\""+displayUrl+"\""+","+"\""+visitUrl+"\""+","+pause+","+devicePerference;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "IdeaEntity [id=" + id + ", ideaTitle=" + ideaTitle + ", ideaDesOne=" + ideaDesOne + ", ideaDesTwo="
				+ ideaDesTwo + ", displayUrl=" + displayUrl + "]";
	}
	
	
}
